.color-picker-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 150px;
  user-select: none;
  cursor: default;
}

.color-picker-panel__saturation {
  margin: var(--padding) 0;
  position: relative;
  flex-grow: 1;
  border-color: transparent;
  border-bottom: 12px solid #000;
  border-radius: var(--borderRadius);
  background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)),
    linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}

.color-picker-panel__pointer-fill {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  border-radius: inherit;
}

.color-picker-panel__saturation {
  box-shadow: inset 0 0 0 1px var(--hoverColor);
  border: 1px solid var(--borderColor);
}

.color-picker-panel__hue {
  position: relative;
  height: 16px;
}

.color-picker-panel__hue {
  background: linear-gradient(
    to right,
    #f00 0%,
    #ff0 17%,
    #0f0 33%,
    #0ff 50%,
    #00f 67%,
    #f0f 83%,
    #f00 100%
  );
}

.color-picker-panel__last-control {
  border-radius: var(--borderLargeRadius);
}

.color-picker-panel__interactive {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  outline: none;
  touch-action: none;
}

.color-picker-panel__pointer {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  background-color: var(--white);
  border: 1px solid var(--borderColor);
  border-radius: 50%;
  box-shadow: 0 2px 4px var(--scrollbarHoveColor);
}

.color-picker-panel__interactive:focus .color-picker-panel__pointer {
  transform: translate(-50%, -50%) scale(1.1);
}

.color-picker-panel__saturation-pointer {
  z-index: 3;
}

.color-picker-panel__hue-pointer {
  z-index: 2;
}
